/*
 * @Author: hongbin
 * @Date: 2022-11-24 12:32:06
 * @LastEditors: hongbin
 * @LastEditTime: 2022-11-24 12:40:53
 * @Description:获取配件列表
 */
import { NextApiRequest, NextApiResponse } from "next";
const fs = require("fs");

export default async function handler(req: NextApiRequest, res: NextApiResponse<any>) {
    const list = await fs.readdirSync("./public/model/parts");
    console.log(list);
    res.json(list);
}
